<!-- directive:title 代码自动化生产 产品 -->
<!-- directive:breadcrumb 自动化 -->
<div class="panel-body">
    <form class="yxf14 bigpadding" name="From">
        <b class="yxf14-title"> <i></i> 开卡表单 </b>
        <p class="yxf14-subtitle-red">* 这里解决了两个日期必须先后选择的问题</p>
        <div class="yxf14-box">
            <label class="yxf14-label must"> 中奖日期 </label>
            <div class="yxf14-control">
                <input type="text" placeholder="请选择日期" style="width:200px;"
                    ng-model="frm.lotteryDate1" name="lotteryDate1"
                    datetime-picker config="{format: 'yyyy-mm-dd', minView:'month', endDate: frm.lotteryDate2}"
                    ng-required="true" >
                &nbsp;&nbsp;至&nbsp;&nbsp;
                <input type="text" placeholder="请选择日期" style="width:200px;"
                    ng-model="frm.lotteryDate2" name="lotteryDate2"
                    datetime-picker config="{format: 'yyyy-mm-dd', minView:'month', startDate: frm.lotteryDate1}"
                    ng-required="true" >
                <b ng-show="( From.submitted ) && ( From.lotteryDate1.$invalid || From.lotteryDate2.$invalid )"> 必填项 </b>
            </div>
        </div>
        <div class="yxf14-box">
            <label class="yxf14-label must"> 发奖日期 </label>
            <div class="yxf14-control">
                <input type="text" placeholder="请选择日期" style="width:200px;"
                    ng-model="frm.lotteryDate3" name="lotteryDate3"
                    datetime-picker config="{format: 'yyyy-mm-dd hh:ii', minView:'hour', endDate: frm.lotteryDate4}"
                    ng-required="true" >
                &nbsp;&nbsp;至&nbsp;&nbsp;
                <input type="text" placeholder="请选择日期" style="width:200px;"
                    ng-model="frm.lotteryDate4" name="lotteryDate4"
                    datetime-picker config="{format: 'yyyy-mm-dd hh:ii', minView:'hour', startDate: frm.lotteryDate3}"
                    ng-required="true" >
                <b ng-show="( From.submitted ) && ( From.lotteryDate3.$invalid || From.lotteryDate4.$invalid )"> 必填项 </b>
            </div>
        </div>
        <!-- 提交 -->
        <div class="yxf14-box">
            <div class="yxf14-control">
                <button type="button" class="btn btn-danger" ng-click="submitFun($event)">提交表单</button>
                <button type="button" class="btn btn-grey" ng-click="cancelFun()">取消</button>
            </div>
        </div>
    </form>
</div>